package com.cpkso.yzx.repository;

import org.springframework.stereotype.Repository;

import com.cpkso.yzx.domain.User;

import runze.util.base.HibernateDaoImp;
import runze.util.base.IDao;

/**
 * @author wrzhxy@qq.com
 * @date 2017年11月11日
 */
@Repository
public class UserRepository extends HibernateDaoImp<User> implements IDao<User> {
	private static final String GetByNameAndPassword = "from User where name=? and password=?";
	/**
	 * 用户名密码登录
	 */
	public User getByNameAndPassword(String name, String password) {
		return super.get(GetByNameAndPassword, name, password);
	}
}
